package com.syq.dao;




import com.syq.entity.News;
import com.syq.page.PageInfo;

import java.util.List;

public interface NewsDao {
    public List<News>  getAllNewss() throws Exception;
    Integer deleteNewsByNno(String nno) throws Exception;
    Integer updateNewsByNno(News news) throws Exception;
    Integer addNews(News news) throws Exception;
    public List<News> getNewsByPage(PageInfo pageInfo) throws Exception;
    public String getMaxNno();
//    public News selectNewsWithChildren(String cno);
//    News getNewsWithOrdrees(String cno)throws Exception;
//    News getAccountByAccountName(String cname);
//    public List<News> getNewsByExample(String cname);
//    Integer updateNews(News news)  throws Exception;
//    public Integer updateByPrimaryKeySelective(News news);

    public Integer updateNewss(News news);


}
